﻿<template id="@(ViewBag.PageTemplate)">
    <div class="layout-page-dialog-content">
        <span>这里是弹框内的内容</span>
    </div>
</template>
<script type="text/javascript">
    var @(ViewBag.PageName) = {
        template: "#@(ViewBag.PageTemplate)", data() {
            return {
                path: "@(ViewBag.PagePath)",
                dialog: app.that.$refs.layout_page_dialog_ref
            }
        },
        methods: {
            init(){
                // 初始化弹框确定按钮
                this.dialog.submit = () => {
                    this.dialog.close();
                };
                // 初始化弹框宽度
                this.dialog.width = 800;
            }
        },
        mounted() { this.init(); }
    };
</script>